package edu.byu.intex2.data.bo;

import java.util.List;

/**
 * Customer represents a customer of mag.  Keeps high and low price.
 * @author Brady
 */
public class Customer extends Person {
    //local variables inherited from Person
    private String fName = "";
    private String lName = "";
    private String address = "";
    private String phone = "";
    //just for the customer
    private double highPrice;
    private double lowPrice;
    private List<Sale> sales;
    private boolean alreadyInDB = false;
    private boolean dirty = true;

    /** Creates a new instance of BusinessObject */
    public Customer(String id) {
        super(id);
    }//constructor

    /**
     * @return the highPrice
     */
    public double getHighPrice() {
        return highPrice;
    }

    /**
     * @param highPrice the highPrice to set
     */
    public void setHighPrice(double highPrice) {
        this.highPrice = highPrice;
    }

    /**
     * @return the lowPrice
     */
    public double getLowPrice() {
        return lowPrice;
    }

    /**
     * @param lowPrice the lowPrice to set
     */
    public void setLowPrice(double lowPrice) {
        this.lowPrice = lowPrice;
    }

    /**
     * @return the sales
     */
    public List<Sale> getSales() {
        return sales;
    }

    /**
     * @param sales the sales to set
     */
    public void setSales(List<Sale> sales) {
        this.sales = sales;
    }

    /**
     * @return the alreadyInDB
     */
    public boolean alreadyInDB(){
        return alreadyInDB;
    }
    public void setAlreadyInDB(boolean a) {
        alreadyInDB = a;
    }
    public void setDirty(Boolean a){
        dirty = a;
    }

    /**
     * @return the fName
     */
    public String getFName() {
        return fName;
    }

    /**
     * @param fName the fName to set
     */
    public void setFName(String fName) {
        this.fName = fName;
    }

    /**
     * @return the lName
     */
    public String getLName() {
        return lName;
    }

    /**
     * @param lName the lName to set
     */
    public void setLName(String lName) {
        this.lName = lName;
    }

    /**
     * @return the address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return the phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone the phone to set
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }
}
